package com.petshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.petshop.pojo.Users;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author 20289
 * @description 针对表【users(存储用户基本信息)】的数据库操作Mapper
 * @createDate 2025-02-27 11:17:00
 * @Entity com.petshop.pojo.Users
 */
public interface UsersMapper extends BaseMapper<Users> {

    void reduceBalance(int userId, BigDecimal balance);


    int recharge(@Param("amount") BigDecimal amount, @Param("userId") Integer userId);

    void updatePassword(String newEncrypt, Integer userId);
}




